import Vue from "vue";
import Router from "vue-router";
import Home from "./views/Home.vue";

Vue.use(Router);

export default new Router({
  mode: "history",
  base: process.env.BASE_URL,
  routes: [
    {
      path: "/",
      name: "home",
      component: Home,
      children: [
        {
          path: "/dashBoard",
          name: "DashBoard",
          component: () => import("./views/DashBoard.vue")
        },
        {
          path: "/customSql",
          name: "CustomSql",
          component: () => import("./views/CustomSql.vue")
        },
        {
          path: "/schema",
          name: "Schema",
          component: () => import("./views/Schema.vue")
        },
        {
          path: "/table",
          name: "Table",
          component: () => import("./views/Table.vue")
        },
      ]
    }
  ]
});
